$.fn.panel.defaults.loadingMessage = '正在处理，请稍待...';
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共 {pages} 页';
$.fn.pagination.defaults.displayMsg = '显示 {from} 到 {to}， 共 {total} 记录';
$.fn.datagrid.defaults.loadMsg = '正在处理，请稍待...';
$.messager.defaults.ok = '确定';
$.messager.defaults.cancel = '取消';

$.fn.combobox.defaults.missingMessage = "该输入项为必输项.";
$.fn.combotree.defaults.missingMessage = "该输入项为必输项.";

$.fn.validatebox.defaults.missingMessage = '该输入项为必输项.';
$.fn.validatebox.defaults.rules.reinput.message = '两次输入不一致,请重新输入.';
$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间.';
$.fn.validatebox.defaults.rules.email.regex = /^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/;
$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址,<br>如:cainiao@163.com.';
$.fn.validatebox.defaults.rules.telephone.regex = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
$.fn.validatebox.defaults.rules.telephone.message = '请输入有效的电话号码,<br>如:010-62564027.';
$.fn.validatebox.defaults.rules.mobile.regex = /(^0?[1][358][0-9]{9}$)/;
$.fn.validatebox.defaults.rules.mobile.message = '请输入有效的手机号码,<br>如:13466668888.';
$.fn.validatebox.defaults.rules.zipcode.regex = /^[1-9]\d{5}$/;
$.fn.validatebox.defaults.rules.zipcode.message = '请输入有效的邮政编码,<br>如:530800.';
$.fn.validatebox.defaults.rules.qq.regex = /^[1-9]\d{4,9}$/;
$.fn.validatebox.defaults.rules.qq.message = '请输入有效的QQ号码,<br>如:272654394.';
$.fn.validatebox.defaults.rules.chinese.regex = /^[\u4e00-\u9fa5]+$/;
$.fn.validatebox.defaults.rules.chinese.message = '请输入中文,<br>如:张伟.';
$.fn.validatebox.defaults.rules.english.regex = /^[a-zA-Z]+$/;
$.fn.validatebox.defaults.rules.english.message = '请输入英文,<br>如:Lucy.';
$.fn.validatebox.defaults.rules.url.regex = /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/;
$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL,<br>如:http://www.baidu.com.';

$.fn.validatebox.defaults.rules.file.regex = new Array("DOC","XLS","TXT","RAR","ZIP");
$.fn.validatebox.defaults.rules.file.message = '请选择有效的文件类型,<br>如：doc, xls, rar, zip, txt';

// cainiao 2011-10-18
$.fn.validatebox.defaults.rules.date.regex = /^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;
$.fn.validatebox.defaults.rules.date.message = '请输入有效的日期格式,<br>如:2011-01-01.';
$.fn.validatebox.defaults.rules.number.regex = /^[0-9]{1,10}$/;
$.fn.validatebox.defaults.rules.number.message = '请输入有效数字';
$.fn.validatebox.defaults.rules.bank.regex = /^(\d{4}[\s\-]?){4}\d{3}$/;
$.fn.validatebox.defaults.rules.bank.message = '请输入有效的银行账户';